package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @title: ProductFeignService
 * @Author syh
 * @Date: 2022/6/22 11:03
 * @Version 1.0
 */

@FeignClient("gulimall-product")
public interface ProductFeignService {

    /**
     * 根据skuId查询对应sku信息
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
